package com.internetCafes.spms.web.toolbox.controller;


import com.internetCafes.spms.common.utils.entity.RR;
import com.internetCafes.spms.web.toolbox.bizservice.IQualiConfBizService;
import com.internetCafes.spms.web.toolbox.entity.res.QualiTreeByGradeRes;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import com.internetCafes.spms.common.base.BaseWebController;

import java.util.List;

/**
 * <p>
 * 资质信息配置 前端控制器
 * </p>
 *
 * @author Zj
 * @since 2021-06-13
 */
@RestController
@RequestMapping("/quali")
public class QualiConfController extends BaseWebController {

    @Autowired
    private IQualiConfBizService iQualiConfBizService;

    /**
     * 资质树状列表
     */
    @GetMapping("/tree")
    public RR<List<QualiTreeByGradeRes>> tree() {
        return RR.success(iQualiConfBizService.qualiTreeByGrade());
    }
}
